package com.wanghua.mall.ware.openfeign;

import com.wanghua.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wanghua
 * @create 2021-09-10 15:11
 */
@FeignClient("mall-order")
public interface OrderClient {

    /**
     * 根据订单号获取订单状态
     *
     * @param orderNo 订单号
     * @return
     */
    @GetMapping("/order/order/getOrderStatus/{orderNo}")
    R getOrderStatus(@PathVariable("orderNo") String orderNo);
}
